package com.lcj.mis.service;

import com.lcj.common.util.PageUtils;
import com.lcj.common.util.Result;
import com.lcj.mis.controller.form.OrderIdForm;
import com.lcj.mis.controller.form.SearchOrderByPageForm;
import com.lcj.mis.controller.form.UpdateOrderStatusForm;

import java.util.ArrayList;
import java.util.HashMap;

public interface OrderService {
    /**
     * 分页查询订单
     * @param form
     * @return order by page
     */
    public PageUtils searchOrderByPage(SearchOrderByPageForm form);

    /**
     * 查询订单详细信息
     * @param orderId
     * @return
     */
    HashMap searchOrderComprehensiveInfo(long orderId);

    /**
     * 查询30日内上车点
     * @return Map: {latitude,longitude,count}
     */
    ArrayList<HashMap> searchOrderStartLocationIn30Days();

    /**
     * 查询账单
     * @param form
     * @return
     */
    Result searchReviewDriverOrderBill(OrderIdForm form);

    /**
     * 更新订单状态
     * @param form
     * @return
     */
    Result updateOrderStatus(UpdateOrderStatusForm form);
}